package expansion.lifecycle;

import org.springframework.context.LifecycleProcessor;
import org.springframework.stereotype.Component;

@Component
public class MyLifecycleProcessor implements LifecycleProcessor {
    @Override
    public void onRefresh() {
        System.out.println("MyLifecycleProcessor-onRefresh");
    }

    @Override
    public void onClose() {
        System.out.println("MyLifecycleProcessor-onClose");
    }

    @Override
    public void start() {
        System.out.println("MyLifecycleProcessor-start");
    }

    @Override
    public void stop() {
        System.out.println("MyLifecycleProcessor-stop");
    }

    @Override
    public boolean isRunning() {
        return false;
    }
}